home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
Development
/
PowerD
/
powerd
/
source
/
lib
/
chunky_lib.lha
/
Chunky
/
FillChunky.ass
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2000-12-07
|
364 b
|
23 lines
; FillChunky(dst:a0:PTR TO chunky,colour:d0:LONG)
machine mc68020
xdef _FillChunky
_FillChunky
and.l #$ff,d0
move.l d0,d1
lsl.l #8,d1
or.l d1,d0
move.l d0,d1
swap d1
or.l d1,d0 ; d0 contains four times the coloour
move.l (4,a0),d1
muls.l (a0),d1
lsr.l #2,d1 ; divide by four
move.l (8,a0),a1
.loop move.l d0,(a1)+
subq.l #1,d1
bgt.s .loop
rts